home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11.lha / ccs-lib / tools / convert / makefile.src < prev    next >
Encoding:
Makefile  |  1993-08-23  |  1.1 KB  |  54 lines

  1. #
  2. #    makefile for ccs-lib/tools/convert
  3. #
  4.  
  5. PGMS =    totiff.out tovida.out to3dplot.out
  6. # toicc.out toraw_sep.out
  7. PGM5 =  color_ps.out headers.out torle.out
  8.  
  9. PUBLICLIB = -lccs -ltiff -lrle $(LIBRARY) $(OTHERLIBS)
  10. LIBRARIES = $(LDFLAGS) -lscs4 $(PUBLICLIB)
  11. LIBRARIE5 = $(LDFLAGS) -lscs5 $(PUBLICLIB) -ljpeg
  12. LIBRARIE6 = $(LDFLAGS) -lscs6 $(PUBLICLIB) -ljpeg -lpixrect
  13. CPPFLAGS2 = $(CPPFLAGS) -I$(CCS_ROOT)/include
  14.  
  15. .c.out:
  16.     $(LINKc) $* $< $(LIBRARIES) $(CPPFLAGS2) -DCOMMON_TOOL
  17.     mv $* $(DESTDIR)
  18.     @touch $@
  19.  
  20. install:    $(PGMS) $(PGM5)
  21.  
  22.  
  23. #    Routines which require special parameters
  24.  
  25. $(PGM5):
  26.     $(LINKc) $* $< $(LIBRARIE5) $(CPPFLAGS2) -DCOMMON_TOOL
  27.     mv $* $(DESTDIR)
  28.     @touch $@
  29.  
  30. toraw_sep.out:
  31.     @echo "toicc -w" > $(DESTDIR)/toraw_sep
  32.     @chmod 775 $(DESTDIR)/toraw_sep
  33.     @touch $@
  34.  
  35. tohips.out:
  36.     @if test ! -f $(DESTDIR)/tohips; then \
  37.         ln -s $(DESTDIR)/powertool $(DESTDIR)/tohips; \
  38.     else    if test ! -h $(DESTDIR)/tohips; then \
  39.         rm -f $(DESTDIR)/tohips; \
  40.         ln -s $(DESTDIR)/powertool $(DESTDIR)/tohips; fi; \
  41.     fi;
  42.     @touch $@
  43.  
  44. clean:    clean-pgm
  45. clean-all:    clean_all
  46.  
  47. man:
  48.  
  49. doc:
  50.  
  51. pristine:    pristine-pgm
  52.  
  53. FRC:
  54.